package cn.cdeden.resource.domain.dto;


import cn.cdeden.common.translation.annotation.Translation;
import cn.cdeden.common.translation.constant.TransConstant;
import cn.cdeden.resource.domain.SysOssBarrel;
import cn.cdeden.resource.domain.domain.FilePrintLog;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
* @author GW
* @date 2024-05-23
*/
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = FilePrintLog.class)
public class FilePrintLogDto implements Serializable {
    private static final long serialVersionUID = 1L;


    private String id;


    private Long printerId;

    @Translation(type = TransConstant.USER_ID_TO_NICKNAME,mapper = "printerId")
    private String printerNickName;


    private Date createTime;


    private Integer count;

    private Long treeNodeId;

    private String libraryType;


    public void setPrinterId(Long printerId) {
        this.printerId = printerId;
        setPrinterNickName(printerId.toString());
    }
}
